<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="text/html;charset=utf-8">
<title>新增问题</title> 
<link href="resources/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="resources/bootstrap/css/bootstrap-theme.min.css" rel="stylesheet">
<link href="resources/css/index.css" rel="stylesheet">

</head>
<body>
	<s:include value="../header-common.jsp" />
<div class="container-fluid">
	<div class="row">
		<h1 style="text-align:center;text-shadow:1px 1px;">
			<span class="glyphicon glyphicon-question-sign"></span>新增问题
		</h1>
	</div>

	<div class="row">
		<s:if test="actionErrors.size()>0 || fieldErrors.size()>0">
			<div class="alert alert-danger col-sm-7 col-sm-offset-2">
				<s:actionerror />
			</div>
		</s:if>
	</div>
	<s:form id="checkUpdate" action="checkAddProblem" method="post"
		class="form-horizontal container-fluid" enctype="multipart/form-data">
		<div class="form-group">
			<label class="col-sm-3 control-label">项目名称</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-12 col-md-10">
					<h3 style="margin:0;">${employee.project.projectName }</h3>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">问题标题</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-12 col-md-10">
					<input class="form-control" name="problem.problemName"
						data-bv-notempty data-bv-notempty-message="标题不能为空"
						data-bv-stringlength data-bv-stringlength-min="5"
						placeholder="请输入标题" value="${problem.problemName}">
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">问题描述</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-12 col-md-10">
					<textarea rows="5" class="form-control" name="problem.problemDescription"
						data-bv-notempty data-bv-notempty-message="问题描述不能为空"
						data-bv-stringlength data-bv-stringlength-min="5"
						placeholder="问题描述"></textarea>
				</div>
			</div>
		</div>
		<div class="form-group">
			<label class="col-sm-3 control-label">问题截图</label>
			<div class="col-sm-8">
				<div class="input-group col-xs-12 col-md-10">
					<input type="file" class="form-control" name="pic">
				</div>
			</div>
		</div>
		
		<div class="form-group">
			<div class="col-sm-offset-2 col-xs-12 col-sm-9 col-md-8">
				<div class="btn-group btn-group-justified">
					<a class="btn btn-primary"><button type="submit" id="ok"
							style="width:100%;background:none;border:0;margin:0;padding:0;">提交</button>
					</a><a class="btn btn-primary"><button type="reset"
							style="width:100%;background:none;border:0;margin:0;">重填</button></a>
				</div>
			</div>
		</div>
		
<!-- 		<img src="${pageContext.request.contextPath }/images/1458574676753.jpg"> -->
	</s:form>
</div>
	
<script src="resources/bootstrap/js/jquery.min.js"></script>
<script src="resources/bootstrap/js/bootstrap.min.js"></script>
<script	src="resources/bootstrap/js/bootstrapValidator.min.js"></script>
<script	src="resources/bootstrap/js/zh_CN.min.js"></script>
<script src="resources/js/register.js"></script>
<script src="resources/js/common.js"></script>
</body>
</html>
